// samsting : this file is auto create.

#include "Ecs/2014-05-26/CheckAutoSnapshotPolicyRequest.h"

namespace aliyun { namespace Ecs {

CheckAutoSnapshotPolicyRequest::CheckAutoSnapshotPolicyRequest() : RpcAcsRequest("Ecs", "2014-05-26", "CheckAutoSnapshotPolicy") {
}

int64 CheckAutoSnapshotPolicyRequest::GetOwnerId(void) const {
  return OwnerId_;
}
void CheckAutoSnapshotPolicyRequest::SetOwnerId(int64 OwnerId) {
  OwnerId_ = OwnerId;
  PutQueryParameter("OwnerId", string_ValueOfInt64(OwnerId_));
}

const string& CheckAutoSnapshotPolicyRequest::GetResourceOwnerAccount(void) const {
  return ResourceOwnerAccount_;
}
void CheckAutoSnapshotPolicyRequest::SetResourceOwnerAccount(const string& ResourceOwnerAccount) {
  ResourceOwnerAccount_ = ResourceOwnerAccount;
  PutQueryParameter("ResourceOwnerAccount", ResourceOwnerAccount_);
}

int64 CheckAutoSnapshotPolicyRequest::GetResourceOwnerId(void) const {
  return ResourceOwnerId_;
}
void CheckAutoSnapshotPolicyRequest::SetResourceOwnerId(int64 ResourceOwnerId) {
  ResourceOwnerId_ = ResourceOwnerId;
  PutQueryParameter("ResourceOwnerId", string_ValueOfInt64(ResourceOwnerId_));
}

const string& CheckAutoSnapshotPolicyRequest::GetOwnerAccount(void) const {
  return OwnerAccount_;
}
void CheckAutoSnapshotPolicyRequest::SetOwnerAccount(const string& OwnerAccount) {
  OwnerAccount_ = OwnerAccount;
  PutQueryParameter("OwnerAccount", OwnerAccount_);
}

bool CheckAutoSnapshotPolicyRequest::GetSystemDiskPolicyEnabled(void) const {
  return SystemDiskPolicyEnabled_;
}
void CheckAutoSnapshotPolicyRequest::SetSystemDiskPolicyEnabled(bool SystemDiskPolicyEnabled) {
  SystemDiskPolicyEnabled_ = SystemDiskPolicyEnabled;
  PutQueryParameter("SystemDiskPolicyEnabled", string_ValueOfBool(SystemDiskPolicyEnabled_));
}

int CheckAutoSnapshotPolicyRequest::GetSystemDiskPolicyTimePeriod(void) const {
  return SystemDiskPolicyTimePeriod_;
}
bool CheckAutoSnapshotPolicyRequest::SetSystemDiskPolicyTimePeriod(int SystemDiskPolicyTimePeriod) {
  if(SystemDiskPolicyTimePeriod < 1) {
    return false;
  }
  if(SystemDiskPolicyTimePeriod > 4) {
    return false;
  }
  SystemDiskPolicyTimePeriod_ = SystemDiskPolicyTimePeriod;
  PutQueryParameter("SystemDiskPolicyTimePeriod", string_ValueOfInt(SystemDiskPolicyTimePeriod_));
  return true;
}

int CheckAutoSnapshotPolicyRequest::GetSystemDiskPolicyRetentionDays(void) const {
  return SystemDiskPolicyRetentionDays_;
}
bool CheckAutoSnapshotPolicyRequest::SetSystemDiskPolicyRetentionDays(int SystemDiskPolicyRetentionDays) {
  if(SystemDiskPolicyRetentionDays < 1) {
    return false;
  }
  if(SystemDiskPolicyRetentionDays > 3) {
    return false;
  }
  SystemDiskPolicyRetentionDays_ = SystemDiskPolicyRetentionDays;
  PutQueryParameter("SystemDiskPolicyRetentionDays", string_ValueOfInt(SystemDiskPolicyRetentionDays_));
  return true;
}

bool CheckAutoSnapshotPolicyRequest::GetSystemDiskPolicyRetentionLastWeek(void) const {
  return SystemDiskPolicyRetentionLastWeek_;
}
void CheckAutoSnapshotPolicyRequest::SetSystemDiskPolicyRetentionLastWeek(bool SystemDiskPolicyRetentionLastWeek) {
  SystemDiskPolicyRetentionLastWeek_ = SystemDiskPolicyRetentionLastWeek;
  PutQueryParameter("SystemDiskPolicyRetentionLastWeek", string_ValueOfBool(SystemDiskPolicyRetentionLastWeek_));
}

bool CheckAutoSnapshotPolicyRequest::GetDataDiskPolicyEnabled(void) const {
  return DataDiskPolicyEnabled_;
}
void CheckAutoSnapshotPolicyRequest::SetDataDiskPolicyEnabled(bool DataDiskPolicyEnabled) {
  DataDiskPolicyEnabled_ = DataDiskPolicyEnabled;
  PutQueryParameter("DataDiskPolicyEnabled", string_ValueOfBool(DataDiskPolicyEnabled_));
}

int CheckAutoSnapshotPolicyRequest::GetDataDiskPolicyTimePeriod(void) const {
  return DataDiskPolicyTimePeriod_;
}
bool CheckAutoSnapshotPolicyRequest::SetDataDiskPolicyTimePeriod(int DataDiskPolicyTimePeriod) {
  if(DataDiskPolicyTimePeriod < 1) {
    return false;
  }
  if(DataDiskPolicyTimePeriod > 4) {
    return false;
  }
  DataDiskPolicyTimePeriod_ = DataDiskPolicyTimePeriod;
  PutQueryParameter("DataDiskPolicyTimePeriod", string_ValueOfInt(DataDiskPolicyTimePeriod_));
  return true;
}

int CheckAutoSnapshotPolicyRequest::GetDataDiskPolicyRetentionDays(void) const {
  return DataDiskPolicyRetentionDays_;
}
bool CheckAutoSnapshotPolicyRequest::SetDataDiskPolicyRetentionDays(int DataDiskPolicyRetentionDays) {
  if(DataDiskPolicyRetentionDays < 1) {
    return false;
  }
  if(DataDiskPolicyRetentionDays > 3) {
    return false;
  }
  DataDiskPolicyRetentionDays_ = DataDiskPolicyRetentionDays;
  PutQueryParameter("DataDiskPolicyRetentionDays", string_ValueOfInt(DataDiskPolicyRetentionDays_));
  return true;
}

bool CheckAutoSnapshotPolicyRequest::GetDataDiskPolicyRetentionLastWeek(void) const {
  return DataDiskPolicyRetentionLastWeek_;
}
void CheckAutoSnapshotPolicyRequest::SetDataDiskPolicyRetentionLastWeek(bool DataDiskPolicyRetentionLastWeek) {
  DataDiskPolicyRetentionLastWeek_ = DataDiskPolicyRetentionLastWeek;
  PutQueryParameter("DataDiskPolicyRetentionLastWeek", string_ValueOfBool(DataDiskPolicyRetentionLastWeek_));
}


} } // namespace aliyun { namespace Ecs {

// end of file 
